package com.niiwoo.civet.user.service.local;

import com.niiwoo.civet.user.dao.entity.OrganizationInfo;
import com.niiwoo.civet.user.dao.mapper.OrganizationInfoMapperExt;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Service
public class OrganizationInfoService {

    @Autowired
    private OrganizationInfoMapperExt organizationInfoMapperExt;

    public OrganizationInfo selectByPrimaryKey(String id) {
        return organizationInfoMapperExt.selectByPrimaryKey(id);
    }

    @Transactional
    public int updateByPrimaryKeySelective(OrganizationInfo organizationInfo) {
        return organizationInfoMapperExt.updateByPrimaryKeySelective(organizationInfo);
    }
}
